package com.ytf.test.eighth;

/**
 * @author: YTF
 * @date: 2024/12/4 17:15
 * @version: 1.0
 * @description:
 */
public class Music {

    private static void tune(Instrument instrument) {
        instrument.play(Note.MIDDLE_C);
    }

    public static void main(String[] args) {
        Wind wind = new Wind();
        tune(wind);
        /**
         * Output:
         * Wind.play()MIDDLE_C
         */
    }

}
